//
//  CmtActDetailButCollectionViewCell.m
//  Products_B
//
//  Created by lanou on 16/6/3.
//  Copyright © 2016年 朋学友. All rights reserved.
//

#import "CmtActDetailButCollectionViewCell.h"

@implementation CmtActDetailButCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{

    self = [super initWithFrame:frame];
    if (self) {
        
        _but1 = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _but2 = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _but3 = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _but1.frame = CGRectMake(50, 10, (kWidth - 100) / 3, 30);
        [_but1 setTitleColor:[UIColor blackColor] forState:(UIControlStateNormal)];
        _but1.titleLabel.font = [UIFont systemFontOfSize:16];
        [_but1 setTitle:@"最新作品" forState:(UIControlStateNormal)];
        
        self.lineV = [[UIView alloc] initWithFrame:CGRectMake(50 + (kWidth - 100) / 3 * 0 , 47, (kWidth - 100 )/ 3, 3)];
        self.lineV.backgroundColor = [UIColor orangeColor];
        _but2.frame = CGRectMake(50 + (kWidth - 100) / 3, 10, (kWidth - 100) / 3, 30);
        _but2.titleLabel.font = [UIFont systemFontOfSize:16];
        [_but2 setTitleColor:[UIColor blackColor] forState:(UIControlStateNormal)];
        [_but2 setTitle:@"点赞榜" forState:(UIControlStateNormal)];
        
        _but3.frame = CGRectMake(50 + (kWidth - 100) / 3 * 2, 10, (kWidth - 100) / 3 + 10, 30);
        _but3.titleLabel.font = [UIFont systemFontOfSize:16];
        [_but3 setTitle:@"评论榜" forState:(UIControlStateNormal)];
        [_but3 setTitleColor:[UIColor blackColor] forState:(UIControlStateNormal)];
        [self.contentView addSubview:_but1];
        [self.contentView addSubview:_but2];
        [self.contentView addSubview:_but3];
        [self.contentView addSubview:self.lineV];
  
    }
    return self;
}

@end
